import request from '@/utils/request'
// 水机


//获取水机列表
export function getCompanyList(params) {
    return request({
        url: '/sys/company',
        method: 'get',
        params
    })
}
export function getCompanySelectList(params) {
    return request({
        url: '/sys/company/alllist',
        method: 'get',
        params
    })
}
export function getCompanyDetail(params) {
    return request({
        url: '/sys/company/detail',
        method: 'get',
        params
    })
}
//添加
export function createCompany(data) {
    return request({
        url: '/sys/company/create',
        method: 'post',
        data
    })
}

//修改
export function updateCompany(data) {
    return request({
        url: '/sys/company/update',
        method: 'put',
        data
    })
}


//修改
export function changeFiledStatus(data) {
    return request({
        url: '/sys/company/changeFiledStatus',
        method: 'put',
        data
    })
}


//删除
export function delCompany(data) {
    return request({
        url: '/sys/company/delete',
        method: 'delete',
        data
    })
}

